<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  props: {
    text: String,
    isLike: Boolean,
  },
});
</script>

<template>
  <view class="note-like">
    <image
      class="note-like-icon"
      :src="
        isLike
          ? '/static/community-note-like2.png'
          : '/static/community-note-like.png'
      "
    />
    <view class="note-like-text">{{ text }}</view>
  </view>
</template>

<style lang="scss">
.note-like {
  display: flex;
  align-items: center;
  height: 32rpx;

  .note-like-icon {
    width: 28rpx;
    height: 28rpx;
    margin-right: 8rpx;
  }

  .note-like-text {
    font-size: 24rpx;
    color: #666666;
    line-height: 32rpx;
  }
}
</style>
